﻿using Global.Globalcs;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;

namespace PHZPNW.API
{
    public class TXL
    {
        MSql msql = new MSql();
        public TXL()
        {
            //
            //TODO: 在此处添加构造函数逻辑
            //
        }
        public string Getworkname(string workid)
        {
            string workname = "";
            string sql = "select * from F_YGJC where workid = '"+ workid + "'";
            DataSet ds = msql.Selbeck(sql);
            if(ds.Tables[0].Rows.Count>0)
            {
                workname = ds.Tables[0].Rows[0]["workname"].ToString();
            }
            return workname;
        }
    }
}